package com.lehecai.ucenter.constant;

/**
 * Created with IntelliJ IDEA.
 * User: qatang
 * Date: 13-10-14
 * Time: 11:51
 * To change this template use File | Settings | File Templates.
 */
public enum AuthorizeStatus {
    AUTHORIZE_STATUS_SUCCESS(0, "authorize success"),
    AUTHORIZE_STATUS_FAILURE(1, "authorize failed"),
    AUTHORIZE_STATUS_FAILURE_USERNAME_NOT_NULL(2, "username must be not null"),
    AUTHORIZE_STATUS_FAILURE_CLIENT_IP_NOT_NULL(3, "clientIp must be not null"),
    AUTHORIZE_STATUS_FAILURE_RESOURCE_IP_NOT_NULL(4, "resourceIp must be not null"),
    AUTHORIZE_STATUS_FAILURE_APP_NOT_NULL(5, "app must be not null");

    private int code;
    private String message;

    private AuthorizeStatus(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
